package com.jcfk.eam.dao.equ;

import com.jcfk.common.business.dao.BaseDao;
import com.jcfk.common.web.domain.DataPage;
import com.jcfk.eam.domain.dto.equ.EfaLiabilityExtentDTO;
import com.jcfk.eam.domain.po.equ.EfaLiabilityExtent;
import com.jcfk.eam.domain.query.equ.EfaLiabilityExtentQuery;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 设备责任范围
 *
 * @author yrl
 * @email
 * @date 2025-04-22
 */
@Repository
public interface EfaLiabilityExtentDao extends BaseDao<EfaLiabilityExtent> {
    /**
     * 设备责任范围分页查询
     *
     * @param page
     * @param query
     * @return
     */
    DataPage<EfaLiabilityExtentDTO> queryByPage(@Param("page") DataPage<EfaLiabilityExtentDTO> page, @Param("query") EfaLiabilityExtentQuery query);

    List<EfaLiabilityExtentDTO> queryList(@Param("query") EfaLiabilityExtentQuery query);

    EfaLiabilityExtentDTO getByEquipAndType(@Param("equipCode") String equipCode,@Param("type") int type);
}
